<?php
/**
 * StatZone default controller
 * 
 * @package    USS.StatZone
 * @subpackage Components
 * @link www.ugenix.co.za www.statzone.co.za
 * @license		Commercial
 * @author Salie Hendricks
 */

// no direct access
defined('_JEXEC') or die('Restricted access');


/**
 * Scorecards Table class
 *
 * @package    USS.StatZone
 * @subpackage Components
 */
class TableScorecards extends JTable
{
	/**
	 * Primary Key
	 *
	 * @var int
	 */
	var $id = null;

    var $teamidhome = null;
    var $teamidopponent = null;
    
    /**
	 * @var int
	 */
	var $season = '';

    /**
	 * @var int
	 */
	var $division = '';
    
    var $firstinndate = null;
    var $secondinndate = null;
    
    var $innings = 0;
    
    var $result = '';
    var $resultdetails = '';
    
    var $winningteamid = null;
    /**
	 * @var bool
	 */
    var $published = 1;
    
    var $firstinnscore_home = '';
    var $firstinnscore_opponent = '';
    
    var $secondinnscore_home = '';
    var $secondinnscore_opponent = '';
	/**
	 * Constructor
	 *
	 * @param object Database connector object
	 */
	function TableScorecards(& $db) {
		parent::__construct('#__statzone_scorecards', 'id', $db);
        
        //TODO:load the batting and bowling stats here (i reckon)
	}
}
?>
